﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Netfraction.Network.Protocol.TIGR.Extension
{
    [Netfraction.Network.Protocol.MessageExtension(MessageName = "GET", ExtensionType = (int)Netfraction.Network.Protocol.BASE.Extensibility.GETExtensionType.NamedRoot)]
    public class ExtensionGETNamedRoot : ProtocolMessageActionHandler
    {
        public override string ProtocolActionCode
        {
            get { return "GET"; }
        }

        public override object HandleMessageExtension(RemoteMachine.Node node, ProtocolMessage message, params object[] args)
        {
            Console.WriteLine("in TIGR ExtensionGETNamedRoot Handler");
            return "returned from TIGR ExtensionGETNamedRoot Handler";
        }
    }

    [Netfraction.Network.Protocol.MessageExtension(MessageName = "GET", ExtensionType = (int)Netfraction.Network.Protocol.BASE.Extensibility.GETExtensionType.Type)]
    public class ExtensionGETType : ProtocolMessageActionHandler
    {
        public override string ProtocolActionCode
        {
            get { return "GET"; }
        }

        public override object HandleMessageExtension(RemoteMachine.Node node, ProtocolMessage message, params object[] args)
        {
            Console.WriteLine("in TIGR ExtensionGETType Handler");
            return "returned from TIGR ExtensionGETType Handler";
        }
    }
}
